package com.ll.listdemo;

import java.util.LinkedList;

/**
 * @author 刘龙
 * @version 1.0
 */
public class LinkedCRUD {
    public static void main(String[] args) {
        // first = null, list = null, size = 0;
        LinkedList linkedList = new LinkedList();

        linkedList.add(1);
        linkedList.add(2);

        System.out.println(linkedList);
        for (int i = 0; i <= 2; i++) {
            linkedList.add(i);
        }
    }
}
